import numpy as np
import matplotlib.pyplot as plt
import os

ang = np.loadtxt('AngleP359_S213.txt')

bin_size= 0.2
min_edge = 0.
max_edge = 45.
bin_list = np.arange(min_edge, max_edge, bin_size)
Xs = np.arange(0.15,44.9,0.2)
Ys = np.histogram(ang,bin_list)[0]

Xs = np.insert(Xs,0,0)
Ys = np.insert(Ys,0,0)

plt.plot(Xs,Ys)
plt.show()
